package com.juefeng.SMS.pojo;

import java.io.Serializable;

import com.juefeng.pojo.base.BasePojo;

public class SmsConfig extends BasePojo implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer rowId;

    private Long sysTypeId;

    private String sysTypeName;

    private Long apiTypeId;

    private String apiTypeName;

    private String openStatus;

    private Integer isDefault;

    private String resend;

    private Integer resendNum;

    private Short autoChangeApi;

    private String apiUsername;

    private String apiPossword;

    private String apiUrl;
    
    private String sysSign;

    public Integer getRowId() {
        return rowId;
    }

    public void setRowId(Integer rowId) {
        this.rowId = rowId;
    }

    public Long getSysTypeId() {
        return sysTypeId;
    }

    public void setSysTypeId(Long sysTypeId) {
        this.sysTypeId = sysTypeId;
    }

    public String getSysTypeName() {
        return sysTypeName;
    }

    public void setSysTypeName(String sysTypeName) {
        this.sysTypeName = sysTypeName == null ? null : sysTypeName.trim();
    }

    public Long getApiTypeId() {
        return apiTypeId;
    }

    public void setApiTypeId(Long apiTypeId) {
        this.apiTypeId = apiTypeId;
    }

    public String getApiTypeName() {
        return apiTypeName;
    }

    public void setApiTypeName(String apiTypeName) {
        this.apiTypeName = apiTypeName == null ? null : apiTypeName.trim();
    }

    public String getOpenStatus() {
        return openStatus;
    }

    public void setOpenStatus(String openStatus) {
        this.openStatus = openStatus == null ? null : openStatus.trim();
    }

    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    public String getResend() {
        return resend;
    }

    public void setResend(String resend) {
        this.resend = resend == null ? null : resend.trim();
    }

    public Integer getResendNum() {
        return resendNum;
    }

    public void setResendNum(Integer resendNum) {
        this.resendNum = resendNum;
    }

    public Short getAutoChangeApi() {
        return autoChangeApi;
    }

    public void setAutoChangeApi(Short autoChangeApi) {
        this.autoChangeApi = autoChangeApi;
    }

    public String getApiUsername() {
        return apiUsername;
    }

    public void setApiUsername(String apiUsername) {
        this.apiUsername = apiUsername == null ? null : apiUsername.trim();
    }

    public String getApiPossword() {
        return apiPossword;
    }

    public void setApiPossword(String apiPossword) {
        this.apiPossword = apiPossword == null ? null : apiPossword.trim();
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public void setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl == null ? null : apiUrl.trim();
    }
    
    

	public String getSysSign() {
		return sysSign;
	}

	public void setSysSign(String sysSign) {
		this.sysSign = sysSign;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((apiTypeId == null) ? 0 : apiTypeId.hashCode());
		result = prime * result
				+ ((sysTypeId == null) ? 0 : sysTypeId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SmsConfig other = (SmsConfig) obj;
		if (apiTypeId == null) {
			if (other.apiTypeId != null)
				return false;
		} else if (!apiTypeId.equals(other.apiTypeId))
			return false;
		if (sysTypeId == null) {
			if (other.sysTypeId != null)
				return false;
		} else if (!sysTypeId.equals(other.sysTypeId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "SmsConfig [rowId=" + rowId + ", sysTypeId=" + sysTypeId
				+ ", sysTypeName=" + sysTypeName + ", apiTypeId=" + apiTypeId
				+ ", apiTypeName=" + apiTypeName + ", openStatus=" + openStatus
				+ ", isDefault=" + isDefault + ", resend=" + resend
				+ ", resendNum=" + resendNum + ", autoChangeApi="
				+ autoChangeApi + ", apiUsername=" + apiUsername
				+ ", apiPossword=" + apiPossword + ", apiUrl=" + apiUrl
				+ ", sysSign=" + sysSign + "]";
	}

	
    
}